﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NutClass.utils
{
    public class UtilsHelper
    {
        #region 对外信息代理

        public delegate void LogMessageDelegate(object ex);
        /// <summary>
        /// 日志记录代理配置
        /// </summary>
        public static LogMessageDelegate LogMessage { get; set; }

        public UtilsHelper()
        {
            if (LogMessage is null)
            {
                LogMessage = DefaultLogMessage;
            }

        }
        public void DefaultLogMessage(object ex)
        {
            Console.WriteLine(ex.ToString());
        }

        #endregion
    }
}
